how to find the position of a specific element in a matrix in matlab